]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyboard: fix the keyboard hiding when an extended key is selected
authorNohemi Fernandez <nf68@cornell.edu>
Tue, 11 Oct 2011 21:54:05 +0000 (17:54 -0400)
committerDan Winship <danw@gnome.org>
Thu, 13 Oct 2011 20:12:16 +0000 (16:12 -0400)
Add a corner case for when the extended key is clicked in order to stop the keyboard
from prematurely closing.

https://bugzilla.gnome.org/show_bug.cgi?id=661707

js/ui/keyboard.js

index 77ce2449599f8deec04de34615bf54d9422fcbd2..b4c18ce79bc1ce25396e699856bae85ea1dc6608 100644 (file)
@@ -269,8 +269,9 @@ Keyboard.prototype = {
     _onKeyFocusChanged: function () {
         let focus = global.stage.key_focus;
 
-        // Showing an extended key popup will grab focus, but ignore that
-        if (focus && focus._extended_keys)
+        // Showing an extended key popup and clicking a key from the extended keys
+        // will grab focus, but ignore that
+        if (focus && (focus._extended_keys || (focus._key && focus._key.extended_key)))
             return;
 
         if (focus instanceof Clutter.Text)